Total Tests
Total Steps
Total Time Taken (Current Run) 0h 4m 18s+292ms
Total Time Taken (Overall) 0h 4m 18s+292ms
Start 2021-06-21 17:31:35
End 2021-06-21 17:35:53
Tests View
test(s) passed
test(s) failed, others
Steps View
step(s) passed
step(s) failed, others
Pass Percentage
Environment
Param Value
User Name lieu@le.com
OS Windows 10
Java Version 16.0.1
Host Name Com-18-1217
Tests
  • TC01 pass
    2021-06-21 17:32:00 2021-06-21 17:32:06 0h 0m 6s+264ms
    User can log into Railway with valid username and password
    Status Timestamp StepName Details
    17:32:00 Step 1 Navigate to QA Railway Website
    17:32:03 Step 2 Click on "Login" tab
    17:32:04 step 3 Enter valid Email and Password
    17:32:04 Step 4 Click on "Login" button
    17:32:06 PASSED Test Case TC01 is Passed
  • TC02 pass
    2021-06-21 17:32:13 2021-06-21 17:32:17 0h 0m 3s+300ms
    User can't login with blank "Username" textbox
    Status Timestamp StepName Details
    17:32:13 Step 1 Navigate to QA Railway Website
    17:32:15 Step 2 Click on "Login" tab
    17:32:16 Step 3 User doesn't type any words into "Username" textbox but enter valid information into "Password" textbox
    17:32:16 Step 4 Click on "Login" button
    17:32:17 PASSED Test Case TC02 is Passed
  • TC03 fail
    2021-06-21 17:32:26 2021-06-21 17:32:30 0h 0m 3s+851ms
    User cannot log into Railway with invalid password
    Status Timestamp StepName Details
    17:32:26 Step 1 Navigate to QA Railway Website
    17:32:28 Step 2 Click on "Login" tab
    17:32:28 Step 3 Enter valid Email and invalid Password
    17:32:28 Step 4 Click on "Login" button
    17:32:29 FAILED Test Case TC03 is Failed
    17:32:29 Reason for fail error message is not correctly expected [There was a problem with your login and/or errors exist in your form.] but found [Invalid username or password. Please try again.]
    17:32:30 Snapshot below:
  • TC04 pass
    2021-06-21 17:32:36 2021-06-21 17:32:39 0h 0m 2s+863ms
    Login page displays when un-logged User clicks on "Book ticket" tab
    Status Timestamp StepName Details
    17:32:36 Step 1 Navigate to QA Railway Website
    17:32:38 Step 2 Click on "Book ticket" tab
    17:32:39 PASSED Test Case TC04 is Passed
  • TC05 fail
    2021-06-21 17:32:45 2021-06-21 17:32:51 0h 0m 6s+69ms
    System shows message when user enters wrong password several times
    Status Timestamp StepName Details
    17:32:45 Step 1 Navigate to QA Railway Website
    17:32:47 Step 2 Click on "Login" tab
    17:32:47 Step 3 Enter valid information into "Username" textbox except "Password" textbox.
    17:32:47 Step 4 Click on "Login" button
    17:32:48 Step 3 Enter valid information into "Username" textbox except "Password" textbox.
    17:32:48 Step 4 Click on "Login" button
    17:32:49 Step 3 Enter valid information into "Username" textbox except "Password" textbox.
    17:32:49 Step 4 Click on "Login" button
    17:32:50 Step 3 Enter valid information into "Username" textbox except "Password" textbox.
    17:32:50 Step 4 Click on "Login" button
    17:32:50 FAILED Test Case TC05 is Failed
    17:32:50 Reason for fail error message is not correctly expected [You have used 4 out of 5 login attempts. After all 5 have been used, you will be unable to login for 15 minutes.] but found [Invalid username or password. Please try again.]
    17:32:51 Snapshot below:
  • TC06 pass
    2021-06-21 17:32:56 2021-06-21 17:33:01 0h 0m 5s+41ms
    System shows message when user enters wrong password several times
    Status Timestamp StepName Details
    17:32:56 Step 1 Navigate to QA Railway Website
    17:32:59 Step 2 Click on "Login" tab
    17:32:59 Step 3 Login with valid account
    17:33:01 PASSED Test Case TC06 is Passed
  • TC07 fail
    2021-06-21 17:33:08 2021-06-21 17:33:12 0h 0m 3s+819ms
    User can create new account
    Status Timestamp StepName Details
    17:33:08 Step 1 Navigate to QA Railway Website
    17:33:10 Step 2 Click on "Register" tab
    17:33:11 Step 3 Enter valid information into all fields
    17:33:11 Step 4 Click on "Register" button
    17:33:12 FAILED Test Case TC07 is Failed
    17:33:12 Reason for fail the success message is displayed not correctly expected [Thank you for registering your account] but found [You're here]
    17:33:12 Snapshot below:
  • TC09 pass
    2021-06-21 17:33:27 2021-06-21 17:33:33 0h 0m 5s+575ms
    User can change password
    Status Timestamp StepName Details
    17:33:27 Step 1 Navigate to QA Railway Website
    17:33:30 Step 2 Login with valid account
    17:33:32 Step 3 Click on "Change Password" tab
    17:33:32 Step 4 Enter valid value into all fields.
    17:33:32 Step 5 Click on "Change Password" button
    17:33:33 PASSED Test Case TC09 is Passed
  • TC10 pass
    2021-06-21 17:33:39 2021-06-21 17:33:43 0h 0m 3s+338ms
    User can't create account with "Confirm password" is not the same with "Password"
    Status Timestamp StepName Details
    17:33:39 Step 1 Navigate to QA Railway Website
    17:33:41 Step 2 Click on "Register" tab
    17:33:42 Step 3 Enter valid information into all fields except "Confirm password" is not the same with "Password"
    17:33:42 Step 4 Click on "Register" button
    17:33:43 PASSED Test Case TC10 is Passed
  • TC11 pass
    2021-06-21 17:33:49 2021-06-21 17:33:52 0h 0m 3s+345ms
    User can't create account while password and PID fields are empty
    Status Timestamp StepName Details
    17:33:49 Step 1 Navigate to QA Railway Website
    17:33:51 Step 2 Click on "Register" tab
    17:33:51 Step 3 Enter valid email address and leave other fields empty
    17:33:51 Step 4 Click on "Register" button
    17:33:52 PASSED Test Case TC11 is Passed
  • TC14 pass
    2021-06-21 17:34:20 2021-06-21 17:34:27 0h 0m 6s+557ms
    User can book 1 ticket at a time
    Status Timestamp StepName Details
    17:34:20 Step 1 Navigate to QA Railway Website
    17:34:22 Step 2 Login with a valid account
    17:34:24 Step 3 Click on "Book ticket" tab
    17:34:25 Step 4 Select a "Depart date" from the list
    17:34:25 Step 5 Select "Sài Gòn" for "Depart from" and "Nha Trang" for "Arrive at".
    17:34:25 Step 6 Select "Soft bed with air conditioner" for "Seat type"
    17:34:25 Step 7 Select "1" for "Ticket amount"
    17:34:25 Step 8 Click on "Book ticket" button
    17:34:27 PASSED Test Case TC14 is Passed
  • TC15 pass
    2021-06-21 17:34:33 2021-06-21 17:34:39 0h 0m 5s+451ms
    User can open "Book ticket" page by clicking on "Book ticket" link in "Train timetable" page
    Status Timestamp StepName Details
    17:34:33 Step 1 Navigate to QA Railway Website
    17:34:36 Step 2 Login with a valid account
    17:34:37 Step 3 Click on "Timetable" tab
    17:34:38 Step 4 Click on "book ticket" link of the route from "Huế" to "Sài Gòn"
    17:34:39 PASSED Test Case TC15 is Passed
  • TC16 fail
    2021-06-21 17:34:45 2021-06-21 17:35:52 0h 1m 7s+438ms
    User can cancel a ticket
    Status Timestamp StepName Details
    17:34:45 Step 1 Navigate to QA Railway Website
    17:34:48 Step 2 Login with a valid account
    17:34:49 Step 3 Book a ticket
    17:34:51 Step 4 Click on "My ticket" tab
    17:35:22 Step 5 Click on "Cancel" button of ticket which user has just booked.
    17:35:22 Step 6 Click on "OK" button on Confirmation message "Are you sure?"
    17:35:52 FAILED Test Case TC16 is Failed
    17:35:52 Reason for fail Unable to locate element: //table[@class='MyTable']//td[contains(.,'Đà Nẵng')]/following-sibling::td[contains(.,'Sài Gòn')]/following-sibling::td[contains(.,'Hard seat')]/following-sibling::td[contains(.,'')]/following-sibling::td[contains(.,'')]/following-sibling::td[contains(.,'New')]/following-sibling::td[contains(.,'1')]/following-sibling::td/input For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'COM-18-1217', ip: '192.168.188.27', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '16.0.1' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 89.0.1, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20210614221319, moz:geckodriverVersion: 0.29.0, moz:headless: false, moz:processID: 18060, moz:profile: C:\Users\SATTDN21.02.01\App..., moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, platformVersion: 10.0, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify} Session ID: ec915d0b-3f2c-4a59-a357-a24dcd7998ff *** Element info: {Using=xpath, value=//table[@class='MyTable']//td[contains(.,'Đà Nẵng')]/following-sibling::td[contains(.,'Sài Gòn')]/following-sibling::td[contains(.,'Hard seat')]/following-sibling::td[contains(.,'')]/following-sibling::td[contains(.,'')]/following-sibling::td[contains(.,'New')]/following-sibling::td[contains(.,'1')]/following-sibling::td/input}
    17:35:52 Snapshot below:
Defects
  • org.testng.SkipException
    3
    RunDate Test Name Exception
    2021-06-21 17:33:18 TC08
    org.testng.SkipException: There isn't any account hasn't been activated
    	at testCases.Railway.TC08_User_cannot_login_with_an_account_has_not_been_activated.TC08(TC08_User_cannot_login_with_an_account_has_not_been_activated.java:31)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:134)
    	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:597)
    	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
    	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:816)
    	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
    	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    	at org.testng.TestRunner.privateRun(TestRunner.java:766)
    	at org.testng.TestRunner.run(TestRunner.java:587)
    	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
    	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
    	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
    	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
    	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187)
    	at org.testng.TestNG.runSuitesLocally(TestNG.java:1109)
    	at org.testng.TestNG.runSuites(TestNG.java:1039)
    	at org.testng.TestNG.run(TestNG.java:1007)
    	at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)
    	at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:109)
    
    2021-06-21 17:33:59 TC12
    org.testng.SkipException: Mailbox not received anything
    	at testCases.Railway.TC12_Errors_display_when_password_reset_token_is_blank.TC12(TC12_Errors_display_when_password_reset_token_is_blank.java:36)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:134)
    	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:597)
    	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
    	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:816)
    	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
    	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    	at org.testng.TestRunner.privateRun(TestRunner.java:766)
    	at org.testng.TestRunner.run(TestRunner.java:587)
    	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
    	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
    	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
    	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
    	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187)
    	at org.testng.TestNG.runSuitesLocally(TestNG.java:1109)
    	at org.testng.TestNG.runSuites(TestNG.java:1039)
    	at org.testng.TestNG.run(TestNG.java:1007)
    	at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)
    	at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:109)
    
    2021-06-21 17:34:09 TC13
    org.testng.SkipException: Mailbox not received anything
    	at testCases.Railway.TC13_Errors_display_if_Password_and_ConfirmPassword_donot_match_when_resetting_password.TC13(TC13_Errors_display_if_Password_and_ConfirmPassword_donot_match_when_resetting_password.java:36)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:134)
    	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:597)
    	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
    	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:816)
    	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
    	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    	at org.testng.TestRunner.privateRun(TestRunner.java:766)
    	at org.testng.TestRunner.run(TestRunner.java:587)
    	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
    	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
    	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
    	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
    	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187)
    	at org.testng.TestNG.runSuitesLocally(TestNG.java:1109)
    	at org.testng.TestNG.runSuites(TestNG.java:1039)
    	at org.testng.TestNG.run(TestNG.java:1007)
    	at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)
    	at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:109)